<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/ActiveStoryTouch.DataModel" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/ActiveStoryTouch.DataModel" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://localhost:1652/ASTDataModelService.svc?xsd=xsd3" namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
  <xs:import schemaLocation="http://localhost:1652/ASTDataModelService.svc?xsd=xsd4" namespace="http://schemas.datacontract.org/2004/07/System.Windows.Media" />
  <xs:complexType name="Page">
    <xs:sequence>
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PageCanvasSettings" nillable="true" type="tns:CanvasSettings" />
      <xs:element minOccurs="0" name="PageNumber" type="xs:long" />
      <xs:element xmlns:q1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="PrototypeElementDictionary" nillable="true" type="q1:ArrayOfKeyValueOflongPrototypeElementCSToXHlP" />
      <xs:element minOccurs="0" name="Strokes" nillable="true" type="tns:ArrayOfSerializableStroke" />
      <xs:element minOccurs="0" name="UnqiueId" type="xs:long" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Page" nillable="true" type="tns:Page" />
  <xs:complexType name="CanvasSettings">
    <xs:sequence>
      <xs:element minOccurs="0" name="Alpha" type="xs:int" />
      <xs:element minOccurs="0" name="Blue" type="xs:int" />
      <xs:element minOccurs="0" name="Green" type="xs:int" />
      <xs:element minOccurs="0" name="Height" type="xs:float" />
      <xs:element minOccurs="0" name="Red" type="xs:int" />
      <xs:element minOccurs="0" name="Width" type="xs:float" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="CanvasSettings" nillable="true" type="tns:CanvasSettings" />
  <xs:complexType name="PrototypeElement">
    <xs:sequence>
      <xs:element minOccurs="0" name="Content" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ContentVisibile" type="xs:boolean" />
      <xs:element minOccurs="0" name="ElementType" type="tns:ElementTypes" />
      <xs:element xmlns:q2="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="GestureTargetPageMap" nillable="true" type="q2:ArrayOfKeyValueOfstringlong" />
      <xs:element minOccurs="0" name="Height" type="xs:double" />
      <xs:element minOccurs="0" name="HoverGlow" type="xs:boolean" />
      <xs:element minOccurs="0" name="Left" type="xs:double" />
      <xs:element minOccurs="0" name="Top" type="xs:double" />
      <xs:element minOccurs="0" name="UniqueId" type="xs:long" />
      <xs:element minOccurs="0" name="Width" type="xs:double" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="PrototypeElement" nillable="true" type="tns:PrototypeElement" />
  <xs:simpleType name="ElementTypes">
    <xs:restriction base="xs:string">
      <xs:enumeration value="None" />
      <xs:enumeration value="Button" />
      <xs:enumeration value="TextBox" />
      <xs:enumeration value="ListBox" />
      <xs:enumeration value="RadioButton" />
      <xs:enumeration value="CheckBox" />
      <xs:enumeration value="Label" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="ElementTypes" nillable="true" type="tns:ElementTypes" />
  <xs:complexType name="ArrayOfSerializableStroke">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="SerializableStroke" nillable="true" type="tns:SerializableStroke" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfSerializableStroke" nillable="true" type="tns:ArrayOfSerializableStroke" />
  <xs:complexType name="SerializableStroke">
    <xs:sequence>
      <xs:element minOccurs="0" name="DrawingAttributes" nillable="true" type="tns:SerializableDrawingAttributes" />
      <xs:element minOccurs="0" name="StylusPoints" nillable="true" type="tns:ArrayOfSerializableStylusPoint" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="SerializableStroke" nillable="true" type="tns:SerializableStroke" />
  <xs:complexType name="SerializableDrawingAttributes">
    <xs:sequence>
      <xs:element xmlns:q3="http://schemas.datacontract.org/2004/07/System.Windows.Media" minOccurs="0" name="Color" type="q3:Color" />
      <xs:element minOccurs="0" name="FitToCurve" type="xs:boolean" />
      <xs:element minOccurs="0" name="Height" type="xs:double" />
      <xs:element minOccurs="0" name="IgnorePressure" type="xs:boolean" />
      <xs:element minOccurs="0" name="IsHighlighter" type="xs:boolean" />
      <xs:element minOccurs="0" name="StylusTip" type="tns:SerializableDrawingAttributes.StylusTips" />
      <xs:element xmlns:q4="http://schemas.datacontract.org/2004/07/System.Windows.Media" minOccurs="0" name="StylusTipTransform" type="q4:Matrix" />
      <xs:element minOccurs="0" name="Width" type="xs:double" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="SerializableDrawingAttributes" nillable="true" type="tns:SerializableDrawingAttributes" />
  <xs:simpleType name="SerializableDrawingAttributes.StylusTips">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Rectangle" />
      <xs:enumeration value="Ellipse" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="SerializableDrawingAttributes.StylusTips" nillable="true" type="tns:SerializableDrawingAttributes.StylusTips" />
  <xs:complexType name="ArrayOfSerializableStylusPoint">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="SerializableStylusPoint" nillable="true" type="tns:SerializableStylusPoint" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfSerializableStylusPoint" nillable="true" type="tns:ArrayOfSerializableStylusPoint" />
  <xs:complexType name="SerializableStylusPoint">
    <xs:sequence>
      <xs:element minOccurs="0" name="PressureFactor" type="xs:float" />
      <xs:element minOccurs="0" name="X" type="xs:double" />
      <xs:element minOccurs="0" name="Y" type="xs:double" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="SerializableStylusPoint" nillable="true" type="tns:SerializableStylusPoint" />
  <xs:complexType name="GestureManager">
    <xs:sequence>
      <xs:element xmlns:q5="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="GestureDictionary" nillable="true" type="q5:ArrayOfKeyValueOfstringGestureCSToXHlP" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="GestureManager" nillable="true" type="tns:GestureManager" />
  <xs:complexType name="Gesture">
    <xs:sequence>
      <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DisplayName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Identifier" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Gesture" nillable="true" type="tns:Gesture" />
</xs:schema>